package com.core.reach.oauth2server.service;

import com.core.reach.oauth2server.domain.AuthUserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author Mr_zhangmu
 * @version V1.0
 * @description: TODO
 * @date 2020/6/19 8:53
 **/
public interface UserService extends JpaRepository<AuthUserInfo, Long>, JpaSpecificationExecutor<AuthUserInfo> {

    /**
     * 根据用户名查找用户
     *
     * @param username 用户名
     * @return 用户信息
     */
    AuthUserInfo findByUsername(String username);

}
